<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>08遍历</title>
</head>
<body ng-app="app">
    <div ng-controller="demoController">
        <!--<ul>-->
            <!--<li ng-repeat="(key,star) in stars">{{star.name}}</li>-->
        <!--</ul>-->
        <ul>
            <li ng-repeat="item in items" ng-switch="item">
                <span ng-switch-when="css">{{item}}</span>
            </li>
        </ul>
    </div>
</body>
<script src="libs/angular.min.js"></script>
<script>
    var app = angular.module("app",[]);
    app.controller("demoController",["$scope",function($scope){
//        $scope.stars = [
//            {name:"刘德华",age:50},
//            {name:"林志颖",age:40},
//            {name:"黄晓明",age:30}
//        ]
        $scope.items=["html","css","angular"];
    }])
</script>
</html>